package cn.com.controller;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.com.pojo.Person;
import cn.com.service.TransactionRun;

public class SpringWebController {
	public static void main(String[] args) {
		ApplicationContext factory = new ClassPathXmlApplicationContext("applicationContext-web.xml");
		TransactionRun dao = (TransactionRun) factory.getBean("transactionRun");
		dao.run();

	}
}
